package com.eBook.entity;
/**
 * 用户实体
 * */
public class User {
	private int userId;
	private String userAccount;
	private String userImg;
	private String userName;
	private int userBonus;
	private String userVip;
	private int userCount;
	public User() {
		super();
	}
	public User(String userAccount, String userImg, String userName,
			int userBonus, String userVip, int userCount) {
		super();
		this.userAccount = userAccount;
		this.userImg = userImg;
		this.userName = userName;
		this.userBonus = userBonus;
		this.userVip = userVip;
		this.userCount = userCount;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public String getUserAccount() {
		return userAccount;
	}
	public void setUserAccount(String userAccount) {
		this.userAccount = userAccount;
	}
	public String getUserImg() {
		return userImg;
	}
	public void setUserImg(String userImg) {
		this.userImg = userImg;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public int getUserBonus() {
		return userBonus;
	}
	public void setUserBonus(int userBonus) {
		this.userBonus = userBonus;
	}
	public String getUserVip() {
		return userVip;
	}
	public void setUserVip(String userVip) {
		this.userVip = userVip;
	}
	public int getUserCount() {
		return userCount;
	}
	public void setUserCount(int userCount) {
		this.userCount = userCount;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((userAccount == null) ? 0 : userAccount.hashCode());
		result = prime * result + userBonus;
		result = prime * result + userCount;
		result = prime * result + userId;
		result = prime * result + ((userImg == null) ? 0 : userImg.hashCode());
		result = prime * result
				+ ((userName == null) ? 0 : userName.hashCode());
		result = prime * result + ((userVip == null) ? 0 : userVip.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		User other = (User) obj;
		if (userAccount == null) {
			if (other.userAccount != null)
				return false;
		} else if (!userAccount.equals(other.userAccount))
			return false;
		if (userBonus != other.userBonus)
			return false;
		if (userCount != other.userCount)
			return false;
		if (userId != other.userId)
			return false;
		if (userImg == null) {
			if (other.userImg != null)
				return false;
		} else if (!userImg.equals(other.userImg))
			return false;
		if (userName == null) {
			if (other.userName != null)
				return false;
		} else if (!userName.equals(other.userName))
			return false;
		if (userVip == null) {
			if (other.userVip != null)
				return false;
		} else if (!userVip.equals(other.userVip))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "User [userId=" + userId + ", userAccount=" + userAccount
				+ ", userImg=" + userImg + ", userName=" + userName
				+ ", userBonus=" + userBonus + ", userVip=" + userVip
				+ ", userCount=" + userCount + "]";
	}
	
}
